package com.eduadmin.service;

import com.eduadmin.entity.BaseDataTable;
import com.eduadmin.entity.Exam;
import com.eduadmin.mapper.BaseDataTableMapper;
import com.eduadmin.mapper.ExamMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseDataTableServiceImpl implements IBaseDataTableService {
    private final BaseDataTableMapper baseDataTableMapper;

    @Autowired
    public BaseDataTableServiceImpl(BaseDataTableMapper baseDataTableMapper) {
        this.baseDataTableMapper = baseDataTableMapper;
    }
//    @Override
//    public List<Exam> getAllExam(){
//        return examMapper.getAllExam();
//    }

    @Override
    public int addBaseDataTables(List<BaseDataTable> baseDataTableList) {
        return baseDataTableMapper.insertBaseDataTable(baseDataTableList);
    }
}
